<?php

use yii\helpers\Html;
use kartik\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\modules\basic\models\BankSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '银行列表';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="bank-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a('创建银行', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            'id',
            [
                'class' => \common\components\grid\KEnumColumn::className(),
                'attribute' => 'status',
                'enum' => \common\models\Bank::getStatus(),
            ],
            'sign_code',
            'headquarters',
            'name',
            'api_base_url:url',
            'phybrno',
            'contact_mobile',
            ['class' => \kartik\grid\ActionColumn::className()],
        ],
    ]); ?>
</div>
